package com.gjx.springboot.infra.mapper;

import com.gjx.springboot.domain.entity.Employees;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface EmployeesMapper {
    List<Employees> getAllEmployees();

    Boolean insertOneEmployees(Employees employees);

    Boolean deleteEmployees(Integer employeeId);

    Boolean updateOneEmployees(Employees employees);

    //一对一
    List<Employees> getDepartMentEmployees();

    //批量插入
    Integer insertMoreEmployees(List<Employees> employeesList);
}
